package com.puboot.common.util;

import java.util.List;
import java.util.Map;

/**
 * @author Leonidax
 * @date 2024/10/24 09:33
 * @description ComicDao
 */
public interface ComicDao {
    List<Map<String, Object>> findAllTest0();
    List<Map<String, Object>> findAllChapters();
    List<Map<String, Object>> findAllCates();
    List<Map<String, Object>> findAllBaseCates();
    int insertCate2Comic(Integer comicId, Integer cateId);
    int insertCate(String cate);
    int insertChapter(Integer comicId, Integer chapterId, String title, String content);
    int insertComic(Integer id, String title, String author, String cate, String cover, Integer hits, String intro, String comicPy);

}

/**
 *   `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
 *   `title` varchar(255) DEFAULT NULL COMMENT '标题',
 *   `author` varchar(100) DEFAULT NULL COMMENT '作者',
 *   `cate` varchar(100) DEFAULT NULL COMMENT '类型',
 *   `cover` varchar(255) DEFAULT NULL COMMENT '封面图',
 *   `hits` int(11) unsigned DEFAULT 0 COMMENT '点击量',
 *   `intro` varchar(1200) DEFAULT NULL COMMENT '简介',
 *   `total` int(8) unsigned DEFAULT 0,
 *   `comic_py` varchar(200) DEFAULT NULL,
 */